<div data-control="toolbar">
    <a
        href="javascript:;"
        onclick="$.templateTokens.createToken()"
        class="btn btn-primary oc-icon-plus"
    >
        <?= e(trans('koderhut.templatetokens::lang.fields.add_token.label')) ?>
    </a>

    <button
        class="btn btn-default oc-icon-trash-o"
        disabled="disabled"
        onclick="$(this).data('request-data', {
            checked: $('.control-list').listWidget('getChecked')
        })"
        data-request="onDelete"
        data-trigger-action="enable"
        data-trigger=".control-list input[type=checkbox]"
        data-trigger-condition="checked"
        data-request-success="$(this).prop('disabled', true)"
        data-stripe-load-indicator>
        <?= e(trans('koderhut.templatetokens::lang.fields.delete_token.label')) ?>
    </button>
</div>